﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace BanSupport
{
    public class BaseAction
    {

        public BaseObject obj;
        public Action completeAction;

        public BaseAction(BaseObject obj, Action completeAction)
        {
            this.obj = obj;
            this.completeAction = completeAction;
        }

        //是否完Action，如果完成应该剔除
        public virtual bool Update()
        {
            return true;
        }

        public void TriggerCompleteAction()
        {
            if (completeAction != null)
            {
                completeAction();
            }
        }

    }

}

